package cn.dengta.webapp.trade.config;

import java.util.Collections;
import java.util.Set;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * ip黑名单配置
 *
 * @author zw
 * @since 2024/07/04
 */
@Configuration
@Getter
@Setter
@ConfigurationProperties(prefix = "ip.blacklist")
public class IpBlacklistProperties {

	/** 是否启用 */
	private boolean enabled = false;
	/** IP地址属地自动加黑的时间 */
	private Long autoBlacklistTime = 1667523000000L;
	/** 注册加黑名单城市编码 */
	private Set<Integer> blacklistCity = Collections.emptySet();

}
